package com.atguigu.common.exception;

/**
 * @author: haitao
 * @email: haitaoss@aliyun.com
 * @date: 2020/7/19 18:12:11
 * @Description
 */
public class NoStockException extends RuntimeException {


    public NoStockException(Long skuId) {
        super("商品id:" + skuId + "没有足够的库存了");
    }
     public NoStockException(String msg) {
        super("商品id:" + msg + "没有足够的库存了");
    }
}
